﻿#ifndef FILECONTROLLER_H
#define FILECONTROLLER_H

#include <QObject>
#include <httpcontroller.h>
#include <httprequest.h>
using namespace stefanfrings;

class FileController : public HttpController
{
    Q_OBJECT
public:
    explicit FileController(QObject *parent = nullptr);
    ~FileController();
    void route(QString path, QString method, HttpRequest &request, HttpResponse &response) override;
private:
    void download(HttpRequest &request, HttpResponse &response);
};

#endif // FILECONTROLLER_H
